import daily.securety.Account

class AuthenticationFilters {

    def filters = {


        all(controller: '*', action: '*', actionExclude: '(logout|reg|login|authenticat)') {
            before = {
                if (!session['accountName']) {
                    redirect controller: 'account', action: 'login'
                }

            }
            after = { Map model ->

            }
            afterView = { Exception e ->

            }
        }


    }

}
